import request from "../request";

const controller = "GalGame";

export const getGalPathOfIndex_API = (data: any) => {
    return request.get(`${controller}/getGal?${queryStr(data)}`);
};

const queryStr = (data: any) => {
    let str = "";
    for (var key in data) {
        str += `${key}=${data[key]}&`;
    }
    if (str[str.length - 1] == "&") {
        str = str.substring(0, str.length - 1);
    }
    return str;
};
